home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_joyports.lha / JoyPorts / joyports_data.c < prev    next >
C/C++ Source or Header  |  1998-07-08  |  2KB  |  57 lines

  1. /* Module Header
  2. ** -------------
  3. ** This object file must be linked right at the start of the output file.
  4. ** It is very important that the "struct ModHeader" part stays at the top,
  5. ** or the module will not work.
  6. */
  7.  
  8. #define DPKNOBASE 1
  9.  
  10. #include <proto/dpkernel.h>
  11.  
  12. #define JOYMOD_VERSION  1
  13. #define JOYMOD_REVISION 2
  14.  
  15. extern BYTE ModAuthor[];
  16. extern BYTE ModDate[];
  17. extern BYTE ModCopyright[];
  18. extern BYTE ModName[];
  19.  
  20. extern LIBFUNC LONG (CMDInit)(mreg(__a0) struct Module *, mreg(__a1) APTR DPKBase,
  21.                      mreg(__a2) struct GVBase *, mreg(__d0) LONG dpkVersion,
  22.                      mreg(__d1) LONG dpkRevision);
  23. extern LIBFUNC void (CMDClose)(mreg(__a0) struct Module *);
  24. extern LIBFUNC LONG (CMDExpunge)(void);
  25. extern LIBFUNC LONG (CMDOpen)(mreg(__a0) struct Module *);
  26.  
  27. struct ModHeader ModHeader = {
  28.   MODULE_HEADER_V1, /* Version of this structure */
  29.   CMDInit,          /* Init() */
  30.   CMDClose,         /* Close() */
  31.   CMDExpunge,       /* Expunge() */
  32.   JMP_LVO,          /* Type of jump table to be generated for our own use */
  33.   0,                /* Reserved */
  34.   ModAuthor,        /* Author that wrote the module */
  35.   0,                /* Pointer to function list */
  36.   CPU_68000,        /* The type of CPU that this module is compiled for */
  37.   JOYMOD_VERSION,   /* Version of this module */
  38.   JOYMOD_REVISION,  /* Revision of this module */
  39.   DPKVersion,       /* Required DPK Version */
  40.   DPKRevision,      /* Required DPK Revision */
  41.   CMDOpen,          /* Open() */
  42.   0,                /* Reserved */
  43.   ModCopyright,     /* Copyright and Company information */
  44.   ModDate,          /* The date of module compilation */
  45.   ModName,          /* The name of this module */
  46.   JMP_LVO,          /* The dpkernel jump table that we want */
  47.   0                 /* Reserved */
  48. };
  49.  
  50. LONG custom    = 0xdff000;
  51. LONG cia       = 0xbfe001;
  52. APTR JoyObject = NULL;
  53. APTR DPKBase;
  54. APTR GVBase;
  55. struct ModPublic *Public;
  56.  
  57.